import "whatwg-fetch";

import registerRequireContextHook from "babel-plugin-require-context-hook/register";
import ViewUI from "view-design";
import Vue from "vue";

Vue.use(ViewUI);

registerRequireContextHook();

global.document.createRange = () => ({
  setStart: () => {},
  setEnd: () => {},
  commonAncestorContainer: {
    nodeName: "BODY",
    ownerDocument: document,
  },
  createContextualFragment: jest.fn,
});
